import Home from '@/pages/Home'
import Mall from '@/pages/Mall'
import Cart from '@/pages/Cart'
import Mine from '@/pages/Mine'
import Detail from '@/pages/Detail'
import Cate from '@/pages/Cate'
import Product from '@/pages/Product'
const routes = [{
    path:'/',
    redirect:'/home'
},{
    path:'/home',
    text:'首页',
    name:'home',
    component:Home,
    isNav:true
},{
    path:'/mall',
    text:'商城',
    name:'mall',
    component:Mall,
    isNav:true,
    redirect:'/mall/yifu',
    children:[{
        path:':list',
        name:'list',
        component:Cate,
        props:true
    }]
    
},{
    path:'/cart',
    text:'购物车',
    name:'cart',
    component:Cart,
    isNav:true
},{
    path:'/mine',
    text:'我的',
    name:'mine',
    component:Mine,
    isNav:true,
    meta: { navShow: false}
},{
    path:'/detail/:detail',
    name:'detail',
    component:Detail,
    props:true
   
},{
     path:'/product/:product',
     name:'product',
     component:Product,
   props:true
 }]

export default routes